CC = g++
CFLAGS = -c -Wall -fopenmp
LDFLAGS= -fopenmp
SOURCES=main.cpp helloworld.cpp privates.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=helloOpenMP

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf $(OBJECTS) $(EXECUTABLE)


